package e

const (
	SUCCESS           = 200
	ERROR             = 500
	INVALID_PARAMS    = 400
	BINDING_PARAMS    = 600
	TOO_MANY_REQUESTS = 429

	// 验证相关
	ERROR_AUTH_DECRYPT_PWD         = 20001
	ERROR_AUTH_CHECK_PWD           = 20002
	ERROR_AUTH_GET_TOKEN           = 20003
	ERROR_AUTH_EMPTY_TOKEN         = 20004
	ERROR_AUTH_TOKEN_FORMAT        = 20005
	ERROR_AUTH_NOT_VALID_TOKEN     = 20006
	ERROR_AUTH_EXPIRES_TOKEN       = 20007
	ERROR_AUTH_GET_USER_FROM_TOKEN = 20008
	ERROR_AUTH_USER_NOT_LOGIN      = 20009
	ERROR_AUTH_USER_NOT_ENABLE     = 20010
	ERROR_AUTH_USER_NOT_PERMIT     = 20011

	// 用户相关
	ERROR_USER_CANNOT_MODIFY_ADMIN   = 20019
	ERROR_GET_CURRENT_USER           = 20020
	ERROR_GET_USER_LIST              = 20021
	ERROR_USER_PWD_NOT_MATCH         = 20022
	ERROR_UPDATE_USER_PWD            = 20023
	ERROR_USER_PWD_NOT_ENOUGH_LENTH  = 20024
	ERROR_USER_ROLE_NOT_FOUND        = 20026
	ERROR_CONNOT_MODIFY_ADMIN        = 20027
	ERROR_CONNOT_DELETE_ADMIN        = 20048
	ERROR_CREATE_USER                = 20028
	ERROR_USER_ID_NOT_CORRECT        = 20029
	ERROR_GET_USER_INFO              = 20030
	ERROR_USER_CANNOT_DISABLE_ITSELF = 20031
	ERROR_USER_CANNOT_MODIFY_ITSELF  = 20032
	ERROR_MOVE_TO_USER_CENTER        = 20033
	ERROR_UPDATE_USER                = 20036
	ERROR_USER_GET_ROLE_ID_MIN       = 20037
	ERROR_USER_DELETE_ITSELF         = 20038
	ERROR_DELETE_USER_FAIL           = 20040
	ERROR_CANNOT_UPDATE_ROLE_ITSELF  = 20047
	ERROR_CANNOT_DELETE_ROLE_ITSELF  = 20049
	ERROR_CONNOT_DISABLED_ADMIN      = 20050
	SUCCESS_GET_CURRENT_USER         = 20041
	SUCCESS_GET_USER_LIST            = 20042
	SUCCESS_USER_UPDATE_PWD          = 20043
	SUCCESS_CREATE_USER              = 20044
	SUCCESS_UPDATE_USER              = 20045
	SUCCESS_DELETE_USER              = 20046

	// 接口相关
	ERROR_UPDATE_APIS_DENY       = 20058
	ERROR_GET_API_BY_APIID       = 20059
	ERROR_GET_API_LIST           = 20060
	ERROR_GET_API_TREE           = 20061
	ERROR_CREATE_API_INTERFACE   = 20062
	ERROR_API_ID_INCORRECT       = 20063
	ERROR_UPDATE_API_INTERFACE   = 20064
	ERROR_DELETE_API_INTERFACE   = 20065
	SUCCESS_GET_API_LIST         = 20066
	SUCCESS_GET_API_TREE         = 20067
	SUCCESS_CREATE_API_INTERFACE = 20068
	SUCCESS_UPDATE_API_INTERFACE = 20069
	SUCCESS_DELETE_API_INTERFACE = 20070

	// 菜单相关
	ERROR_UPDATE_MENU_DENY          = 20079
	ERROR_GET_MENU_LIST             = 20080
	ERROR_GET_MENU_TREE             = 20081
	ERROR_CREATE_MENU               = 20082
	ERROR_MENU_ID_INCORRECT         = 20083
	ERROR_UPDATE_MENU               = 20084
	ERROR_DELETE_MENU               = 20085
	ERROR_GET_MENU_TREE_BY_USERID   = 20087
	SUCCESS_GET_MENU_LIST           = 20088
	SUCCESS_GET_MENU_TREE           = 20089
	SUCCESS_CREATE_MENU             = 20090
	SUCCESS_UPDATE_MENU             = 20091
	SUCCESS_DELETE_MENU             = 20092
	SUCCESS_GET_MENU_BY_USERID      = 20093
	SUCCESS_GET_MENU_TREE_BY_USERID = 20094

	// 角色相关
	ERROR_UPDATE_ROLE_API_BY_ROLEID    = 20100
	ERROR_GET_UPDATE_MENU_BY_ROLEID    = 20101
	ERROR_DELETE_ROLE                  = 20102
	ERROR_UPDATE_ROLE_POLICYS          = 20103
	ERROR_GET_ROLE_OPTIONS             = 20104
	ERROR_GET_ROLE_ID_INCORRECT        = 20105
	ERROR_GET_ROLE_APIS_BY_ROLEID      = 20107
	ERROR_GET_ROLE_MENU_BY_ROLEID      = 20108
	ERROR_GET_HIGHEST_ROLE_FAILED      = 20109
	ERROR_CREATE_ROLE                  = 20110
	ERROR_GET_ROLE_BY_ROLEID           = 20025
	ERROR_GET_ROLE_LIST                = 20111
	ERROR_UPDATE_ROLE                  = 20112
	ERROR_GET_ROLE_INFO                = 20113
	ERROR_CANNOT_MODIFY_ADMIN_API      = 20123
	ERROR_CANNOT_MODIFY_ADMIN_MENU     = 20124
	ERROR_ROLE_SORT_CANNOT_BE_1        = 20126
	ERROR_CANNOT_DISABLED_ADMIN        = 20127
	SUCCESS_GET_ROLE_OPTIONS           = 20114
	SUCCESS_GET_ROLE_APIS_BY_ROLEID    = 20115
	SUCCESS_GET_ROLE_MENU_BY_ROLEID    = 20116
	SUCCESS_GET_ROLE_LIST              = 20117
	SUCCESS_CREATE_ROLE                = 20118
	SUCCESS_UPDATE_ROLE                = 20119
	SUCCESS_DELETE_ROLE                = 20120
	SUCCESS_UPDATE_ROLE_MENU_BY_ROLEID = 20121
	SUCCESS_UPDATE_ROLE_API_BY_ROLEID  = 20122

	// 系统日志相关
	ERROR_GET_LOG_LIST   = 20130
	ERROR_DELETE_LOG     = 20131
	SUCCESS_GET_LOG_LIST = 20132
	SUCCESS_DELETE_LOG   = 20133

	// pod 相关
	SUCCESS_GET_POD_LIST = 20140
	ERROR_GET_POD_LIST   = 20160
)
